<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>WebCL: public/IWebCLContext.idl Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">WebCL
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">public/IWebCLContext.idl</div>  </div>
</div><!--header-->
<div class="contents">
<a href="IWebCLContext_8idl.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * This file is part of WebCL – Web Computing Language.</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This Source Code Form is subject to the terms of the</span>
<a name="l00005"></a>00005 <span class="comment"> * Mozilla Public License, v. 2.0. If a copy of the MPL </span>
<a name="l00006"></a>00006 <span class="comment"> * was not distributed with this file, You can obtain </span>
<a name="l00007"></a>00007 <span class="comment"> * one at http://mozilla.org/MPL/2.0/.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * The Original Contributor of this Source Code Form is</span>
<a name="l00010"></a>00010 <span class="comment"> * Nokia Research Center Tampere (http://webcl.nokiaresearch.com).</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013 
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;nsISupports.idl&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;nsISecurityCheckedComponent.idl&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;nsIVariant.idl&quot;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;nsIDOMWebGLRenderingContext.idl&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="WebCL__types_8idl.html">WebCL_types.idl</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">interface </span><a class="code" href="interfaceIWebCLProgram.html" title="IWebCLProgram interface abstracts a WebCL program.">IWebCLProgram</a>;
<a name="l00028"></a>00028 <span class="keyword">interface </span><a class="code" href="interfaceIWebCLCommandQueue.html" title="IWebCLCommandQueue interface abstracts a WebCL command queue.">IWebCLCommandQueue</a>;
<a name="l00029"></a>00029 <span class="keyword">interface </span><a class="code" href="interfaceIWebCLDevice.html" title="IWebCLDevice interface abstracts a WebCL device.">IWebCLDevice</a>;
<a name="l00030"></a>00030 <span class="keyword">interface </span><a class="code" href="interfaceIWebCLMemoryObject.html" title="IWebCLMemoryObject interface abstracts a WebCL memory object such as a buffer or an image...">IWebCLMemoryObject</a>;
<a name="l00031"></a>00031 <span class="keyword">interface </span>IWebCLImageFormat;
<a name="l00032"></a>00032 <span class="keyword">interface </span><a class="code" href="interfaceIWebCLSampler.html" title="IWebCLSampler interface abstracts a WebCL sampler.">IWebCLSampler</a>;
<a name="l00033"></a>00033 <span class="keyword">interface </span><a class="code" href="interfaceIWebCLEvent.html" title="IWebCLEvent interface abstracts a WebCL event.">IWebCLEvent</a>;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 [scriptable, uuid(0e5fba5c-091f-40db-a6a9-700ba50393d0)]
<a name="l00036"></a><a class="code" href="interfaceIWebCLContext.html">00036</a> <span class="keyword">interface </span><a class="code" href="interfaceIWebCLContext.html" title="IWebCLContext interface abstracts a WebCL context.">IWebCLContext</a> : nsISecurityCheckedComponent
<a name="l00037"></a>00037 {
<a name="l00044"></a>00044   [implicit_jscontext]
<a name="l00045"></a>00045   nsIVariant <a class="code" href="interfaceIWebCLContext.html#afba3b87c3b22d1d02b52d8bb85e38321" title="Get context info.">getContextInfo</a> (in <span class="keywordtype">long</span> aName);
<a name="l00046"></a>00046 
<a name="l00053"></a>00053   [implicit_jscontext]
<a name="l00054"></a>00054   <a class="code" href="interfaceIWebCLProgram.html" title="IWebCLProgram interface abstracts a WebCL program.">IWebCLProgram</a> <a class="code" href="interfaceIWebCLContext.html#af4f9064245bf433c1ef106b44ad06978" title="Creates a program object for a context, and loads the source code specified by the text string aSourc...">createProgramWithSource</a> (in <span class="keywordtype">string</span> aSource);
<a name="l00055"></a>00055 
<a name="l00062"></a>00062   [implicit_jscontext]
<a name="l00063"></a>00063   <a class="code" href="interfaceIWebCLCommandQueue.html" title="IWebCLCommandQueue interface abstracts a WebCL command queue.">IWebCLCommandQueue</a> <a class="code" href="interfaceIWebCLContext.html#ac062e1ef43e5dd34b0a1c2762fc04ad9" title="Create a command-queue on a specific device.">createCommandQueue</a> (in nsISupports aDevice,
<a name="l00064"></a>00064                                          in <a class="code" href="WebCL__types_8idl.html#ae09faba93019c2ee357a57ddbcfdd804">T_WebCLCommandQueueProperties</a> aProperties);
<a name="l00065"></a>00065 
<a name="l00074"></a>00074   [implicit_jscontext]
<a name="l00075"></a>00075   <a class="code" href="interfaceIWebCLMemoryObject.html" title="IWebCLMemoryObject interface abstracts a WebCL memory object such as a buffer or an image...">IWebCLMemoryObject</a> <a class="code" href="interfaceIWebCLContext.html#a7f7593fd6179b4167b75553d6a709993" title="Creates a buffer object.">createBuffer</a> (in <a class="code" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags,
<a name="l00076"></a>00076                                    in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aSize);
<a name="l00077"></a>00077 
<a name="l00091"></a>00091   [implicit_jscontext]
<a name="l00092"></a>00092   <a class="code" href="interfaceIWebCLMemoryObject.html" title="IWebCLMemoryObject interface abstracts a WebCL memory object such as a buffer or an image...">IWebCLMemoryObject</a> <a class="code" href="interfaceIWebCLContext.html#ac0c6b072c1dce0a5cca93af78300a780" title="Creates a 2D image object.">createImage2D</a> (in <a class="code" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags,
<a name="l00093"></a>00093                                     in nsIVariant aImageFormat,
<a name="l00094"></a>00094                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aWidth,
<a name="l00095"></a>00095                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aHeight,
<a name="l00096"></a>00096                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aRowPitch);
<a name="l00097"></a>00097 
<a name="l00113"></a>00113   [implicit_jscontext]
<a name="l00114"></a>00114   <a class="code" href="interfaceIWebCLMemoryObject.html" title="IWebCLMemoryObject interface abstracts a WebCL memory object such as a buffer or an image...">IWebCLMemoryObject</a> <a class="code" href="interfaceIWebCLContext.html#ab73cd608b10f0f68ba0f3b60a6cffa3e" title="Creates a 3D image object.">createImage3D</a> (in <a class="code" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags,
<a name="l00115"></a>00115                                     in nsIVariant aImageFormat,
<a name="l00116"></a>00116                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aWidth,
<a name="l00117"></a>00117                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aHeight,
<a name="l00118"></a>00118                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aDepth,
<a name="l00119"></a>00119                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aRowPitch,
<a name="l00120"></a>00120                                     in <a class="code" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756" title="WebCL types.">T_WebCLSize</a> aSlicePitch);
<a name="l00121"></a>00121 
<a name="l00132"></a>00132   [implicit_jscontext]
<a name="l00133"></a>00133   <a class="code" href="interfaceIWebCLSampler.html" title="IWebCLSampler interface abstracts a WebCL sampler.">IWebCLSampler</a> <a class="code" href="interfaceIWebCLContext.html#abb239eb4af61af9c2974f79bf7f848ab" title="Creates a sampler object.">createSampler</a> (in <span class="keywordtype">boolean</span> aNormalizedCoords,
<a name="l00134"></a>00134                                in <a class="code" href="WebCL__types_8idl.html#aa9a1e259e5b0c134f036423fd389dc2b">T_WebCLAddressingMode</a> aAddressingMode,
<a name="l00135"></a>00135                                in <a class="code" href="WebCL__types_8idl.html#ab1cbd3d68ec437a83969b4af3f1a1f83">T_WebCLFilterMode</a> aFilterMode);
<a name="l00136"></a>00136 
<a name="l00146"></a>00146   [implicit_jscontext]
<a name="l00147"></a>00147   nsIVariant <a class="code" href="interfaceIWebCLContext.html#a9f69f3138b8f7683c7386cde61423b94" title="Get the list of image formats supported by an OpenCL implementation.">getSupportedImageFormats</a> (in <a class="code" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags,
<a name="l00148"></a>00148                                        in <a class="code" href="WebCL__types_8idl.html#ad1b673722e988d883d12ad7bac854c2b">T_WebCLMemObjectType</a> aImageType);
<a name="l00149"></a>00149 
<a name="l00156"></a>00156   [implicit_jscontext]
<a name="l00157"></a>00157   <a class="code" href="interfaceIWebCLEvent.html" title="IWebCLEvent interface abstracts a WebCL event.">IWebCLEvent</a> <a class="code" href="interfaceIWebCLContext.html#a103375eaf93fee56d1fed5d913ead244" title="Creates a user event object.">createUserEvent</a> ();
<a name="l00158"></a>00158 
<a name="l00163"></a>00163   <span class="keywordtype">void</span> <a class="code" href="interfaceIWebCLContext.html#ad7fccb419d1d64e1f010ed17df6fd5da" title="Immediately releases all OpenCL-related resources if any are allocated for this object.">releaseCLResources</a> ();
<a name="l00164"></a>00164 };
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 7 2012 12:59:51 for WebCL by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
